package com.car.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.Date;

public class Post {
    //    岗位ID
    private Integer post_id;
    //    岗位编码
    private String post_code;
    //    岗位名称
    private String post_name;
    //    显示顺序
    private Integer post_sort;
    //    状态（0正常 1停用）
    private String status;
    private String create_by;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Timestamp   create_time;
    private String update_by;

    //    更新时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Timestamp update_time;
    //    备注
    private String remark;


    public Post() {
    }

    public Post(Integer post_id, String post_code, String post_name, Integer post_sort, String status, String create_by, Timestamp create_time, String update_by, Timestamp update_time, String remark) {
        this.post_id = post_id;
        this.post_code = post_code;
        this.post_name = post_name;
        this.post_sort = post_sort;
        this.status = status;
        this.create_by = create_by;
        this.create_time = create_time;
        this.update_by = update_by;
        this.update_time = update_time;
        this.remark = remark;
    }

    /**
     * 获取
     * @return post_id
     */
    public Integer getPost_id() {
        return post_id;
    }

    /**
     * 设置
     * @param post_id
     */
    public void setPost_id(Integer post_id) {
        this.post_id = post_id;
    }

    /**
     * 获取
     * @return post_code
     */
    public String getPost_code() {
        return post_code;
    }

    /**
     * 设置
     * @param post_code
     */
    public void setPost_code(String post_code) {
        this.post_code = post_code;
    }

    /**
     * 获取
     * @return post_name
     */
    public String getPost_name() {
        return post_name;
    }

    /**
     * 设置
     * @param post_name
     */
    public void setPost_name(String post_name) {
        this.post_name = post_name;
    }

    /**
     * 获取
     * @return post_sort
     */
    public Integer getPost_sort() {
        return post_sort;
    }

    /**
     * 设置
     * @param post_sort
     */
    public void setPost_sort(Integer post_sort) {
        this.post_sort = post_sort;
    }

    /**
     * 获取
     * @return status
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 获取
     * @return create_by
     */
    public String getCreate_by() {
        return create_by;
    }

    /**
     * 设置
     * @param create_by
     */
    public void setCreate_by(String create_by) {
        this.create_by = create_by;
    }

    /**
     * 获取
     * @return create_time
     */
    public Timestamp getCreate_time() {
        return create_time;
    }

    /**
     * 设置
     * @param create_time
     */
    public void setCreate_time(Timestamp create_time) {
        this.create_time = create_time;
    }

    /**
     * 获取
     * @return update_by
     */
    public String getUpdate_by() {
        return update_by;
    }

    /**
     * 设置
     * @param update_by
     */
    public void setUpdate_by(String update_by) {
        this.update_by = update_by;
    }

    /**
     * 获取
     * @return update_time
     */
    public Timestamp getUpdate_time() {
        return update_time;
    }

    /**
     * 设置
     * @param update_time
     */
    public void setUpdate_time(Timestamp update_time) {
        this.update_time = update_time;
    }

    /**
     * 获取
     * @return remark
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 设置
     * @param remark
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return "Post{post_id = " + post_id + ", post_code = " + post_code + ", post_name = " + post_name + ", post_sort = " + post_sort + ", status = " + status + ", create_by = " + create_by + ", create_time = " + create_time + ", update_by = " + update_by + ", update_time = " + update_time + ", remark = " + remark + "}";
    }
}
